﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class Feedback : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.EmbeddedUserControlLoader1["Message"] = "Message";

                ////EmbeddedUserControlLoader1.SetControlProperty("Message", "asdf");
                //Response.Write(EmbeddedUserControlLoader1["Message"]);
            }
            Response.Write(EmbeddedUserControlLoader1.EmbeddedUserControl);
            Response.Write(EmbeddedUserControlLoader1.ControlMethod("DDDs", "nihao", "sdfasdf"));
            //Response.Write(EmbeddedUserControlLoader1.ControlMethod("DDD", "nihao", "sdfasdf"));
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            this.Panel1.Visible = true;
            this.lblName.Text =
                this.EmbeddedUserControlLoader1.GetControlProperty("Name")
                as string;
            this.lblSubject.Text =
                this.EmbeddedUserControlLoader1.GetControlProperty("Subject")
                as string;
            this.lblMessage.Text =
                EmbeddedUserControlLoader1["Message"] as string;
        }
    }
}